Cartesian closed category

In category theory, a category is cartesian closed if, roughly speaking, any morphism defined on a product of two objects can be naturally identified with a morphism defined on one of the factors. These categories are particularly important in mathematical logic and the theory of programming, in that they provide a natural setting for lambda calculus. For generalizations of this notion to monoidal categories, see closed monoidal category.

Contents

Definition

The category C is called Cartesian closed[1] if and only if it satisfies the following three properties:

The first two conditions can be combined to the single requirement that any finite (possibly empty) family of objects of C admit a product in C, because of the natural associativity of the categorical product and because the empty product in a category is the terminal object of that category.

The third condition is equivalent to the requirement that the functor –×Y (i.e. the functor from C to C that maps objects X to X×Y and morphisms φ to φ×idY) has a right adjoint, usually denoted –Y, for all objects Y in C. For locally small categories, this can be expressed by the existence of a bijection between the hom-sets

\mathrm{Hom}(X\times Y,Z) \cong \mathrm{Hom}(X,Z^Y)

which is natural in both X and Z.

If a category is such that all its slice categories are cartesian closed, then it is called locally cartesian closed.

Examples

Examples of cartesian closed categories include:

The following categories are not cartesian closed:

Applications

In cartesian closed categories, a "function of two variables" (a morphism f:X×YZ) can always be represented as a "function of one variable" (the morphism λf:XZY). In computer science applications, this is known as currying; it has led to the realization that simply-typed lambda calculus can be interpreted in any cartesian closed category.

The Curry-Howard-Lambek correspondence provides a deep isomorphism between intuitionistic logic, simply-typed lambda calculus and cartesian closed categories.

Certain cartesian closed categories, the topoi, have been proposed as a general setting for mathematics, instead of traditional set theory.

The renowned computer scientist John Backus has advocated a variable-free notation, or Function-level programming, which in retrospect bears some similarity to the internal language of cartesian closed categories. CAML is more consciously modelled on cartesian closed categories.

Equational theory

In every cartesian closed category (using exponential notation), (XY)Z and (XZ)Y are isomorphic for all objects X, Y and Z. We write this as the "equation"

(xy)z = (xz)y.

One may ask what other such equations are valid in all cartesian closed categories. It turns out that all of them follow logically from the following axioms[3]:

Bicartesian closed categories extend cartesian closed categories with binary coproducts and an initial object, with products distributing over coproducts. Their equational theory is extended with the following axioms:

References

  1. ^ S. MacLane, "Categories for the Working Mathematicians"
  2. ^ H.P. Barendregt, The Lambda Calculus, (1984) North-Holland ISBN 0-444-87508-5 (See theorem 1.2.16)
  3. ^ S. Soloviev. "Category of Finite Sets and Cartesian Closed Categories", Journal of Soviet Mathematics, 22, 3 (1983)